<!DOCTYPE HTML>
<html> 
<head> 
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
<title><?php if(isset($meta_title) && !empty($meta_title)): echo $meta_title.' - ';endif; ?> {:C('SITE_TITLE')}</title>
<meta name="keywords" content="<?php if(isset($meta_keywords) && !empty($meta_keywords)): echo $meta_keywords;else:echo C('SITE_KEYWORDS');endif; ?>"> 
<meta name="description" content="<?php if(isset($meta_description) && !empty($meta_description)): echo $meta_description;else:echo C('SITE_DESCRIPTION');endif; ?>"> 
<link rel="shortcut icon" href="__PUBLIC__/Img/favicon.ico" />
<link href="__PUBLIC__/Css/reset.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/iconfont.css" rel="stylesheet" type="text/css" />
<link href="__THEME__/home.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/Js/Jquery/jquery.min.js" type="text/javascript"></script>
</head>
<body>
	<div class="head">
		<div class="top">
			<div class="wrap cl">
				<div class="nav-top fl">
					<a href="{:U('/','',true)}">网站首页</a>
				</div>
				<div class="fr">
					<a href="{:UU('guestbook/index')}">提交建议</a>
				</div>
			</div>
		</div>
		<div class="mid">
			<div class="wrap cl">
				<div class='logo fl mlf20'>
					<h1><a href="{:U('/','',true)}">ShanYu<small class="mlf10">菱号</small></a></h1>
					<h2>成功，唯有积累，没有奇迹</h2>
				</div>
				<div class="search fr">
					<?php $key=I('key',''); ?>
					<input id="searchKey" type="text" value="{$key}" maxlength="55" placeholder="输入搜索关键字"><a id="searchBtn" href='javascript:;' class="btn" style="border-radius: 0;">搜索</a>
					}
				</div>
			</div>
		</div>
		<div class="bot">
			<div class="wrap">
				<div class="nav">
					<ul class="line yahei">
				        <li>
				          <a href="{:U('/','','html',true)}">首页</a>
				        </li>
						<channel cid="0">
						<li class="NavLi">
							<a href="{$v.url}">{$v.title}</a>
							<present name="v._child">
							<ul class="item" style="display:none;">
								<foreach name="v._child" item="vv">
								<li><a href="{$vv.url}">{$vv.title}</a></li>
								</foreach>
							</ul>
							</present>
						</li>
						</channel>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<script>
	$(function(){
		$('.NavLi').hover(function(){
			$(this).find('a').addClass('current');
			$(this).find('ul').stop().slideDown('fast');
		},function(){
			$(this).find('a').removeClass('current');
			$(this).find('ul').stop().slideUp('fast');
		});
		$('#searchKey').keydown(function(e){
			if(e.keyCode==13){
			    $('#searchBtn').click();
			}
		});
		$('#searchBtn').click(function(e){
			var key = $('#searchKey').val();
			if(key == ''){
				alert('请输入搜索关键字');
				return false;
			}
			window.location.href="{:U('Search/index')}"+'?key='+key;
		});
	});
	</script>

